package city;

import java.util.Map;
import java.util.Set;

/**
 * 
 * @author Wangpeihu
 * @team [Never give up]
 * @since JDK1.6(建议)
 * @date 2010-2-5
 */
public class ChinaCity implements City {
	private String name;
	private Map<String, LocalPark> parks;

	public Map<String, LocalPark> getParks() {
		return parks;
	}

	public void setParks(Map<String, LocalPark> parks) {
		this.parks = parks;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Override
	public void introduce() {
		System.out.println("Welcom to " + name);
		Set<String> set = parks.keySet();
		for (Object key : set) {
			Park park = parks.get(key);
			park.intorduce();
		}

	}
}
